home *** CD-ROM | disk | FTP | other *** search
- global CDDrive
-
- on exitFrame me
- CDDrive = EMPTY
- sprite(1).stop()
- put CheckDrive("FlyBox.fb0")
- if CDDrive <> EMPTY then
- setVariable(sprite(1), "CDDrive", CDDrive)
- sprite(1).play()
- go("HoldIt")
- end if
- end
-
- on CheckDrive weirdfile
- repeat with i = 67 to 90
- drive = numToChar(i)
- thisPath = string(drive & ":\" & weirdfile)
- myfile = new(xtra("fileio"))
- openFile(myfile, thisPath, 1)
- if status(myfile) = 0 then
- myfile = 0
- CDDrive = drive & ":"
- exit
- end if
- end repeat
- myfile = 0
- alert("Please put your FlyBox cd-rom in your CD drive and click on OK.")
- go(the frame)
- end
-